the Internet!
Original Address: the website is written by PHP program, why do I say to choose the Linux system PHP virtual host? "
related reading:" I am a G powder, has been concerned about Google, recently Google has some little gestures, probably a lot of people do not understand "
related reading:" machine l
= 65535 This value must be changed to the default is too small to change the log will have an error but the same as the number of global files to view the ULIMIT-N system global SettingsRlimit_core = 0------------------------------------------------------------------------------------------------- ----------[global]pid =/usr/local/php/var/run/php-fpm.piderror_log =/home/wwwlogs/
China.
To learn more about ASP, visit our ASP tutorial.Chili! Soft ASP
Microsoft's ASP technology can only run on Windows platforms.
However, Chili! Soft ASP is a software product that enables ASP to run on UNIX and other platforms.JSP
JSP is a server-side technology developed by SUN similar to ASP.
Through JSP, you can add Java code to an HTML page to create a dynamic page. Before the page returns to the browser, the code is first executed by the server.
Because JSP uses Java, this technology
engines. Spider crawling and the average user's access speed is the same, if a website is too slow to access, will affect the search engine crawling efficiency of the entire site, affecting the crawling depth of the site, resulting in the site is not comprehensive.key Five, whether URL rewriting is supportedAnalysis: Now the site is based on the CMS system, and then according to different types of website,
not overly infatuated with the Almighty, the requirements of Asp,asp.net,php,java and so on what all support, the server supports more components, processing speed will be more slow, if your site is an ASP program, then there is no need to require a virtual host to support PHP, Java it? Choose the right one for you.
5, support pseudo static, Web page generation
WdCP is short for WDlinux Control Panel. It is a set of Linux Server Management Systems and virtual host management systems that Control and manage servers through WEB. It is designed to make it easy to use Linux system as our website server system, common Management Operations on Linux servers can be completed in the background of wdCP.With wdCP, you can view the server status, resource utilization, system
Summer vacation time to do a website, the former will move the site to the school's main server. Many web sites are deployed on this server and are accessed through the configuration of virtual hosts. Start to look normal, the page can be normal display, when I opened the background login page to log in, the strange phenomenon occurred: The verification code is always validation errors.
This site is done with a CMS template, the back and forth has bee
/releases/view/69115), after installation, then in the IIS management interface, there will be one more PHP Manager management options.You don't need to be yourself. In modifying the php.ini file, configure PHP, just use PHP Manager to select the desired PHP version of Php-c
-x192.168.1.106:80 www.123.com123.com[[email protected] ~]# curl-x192.168.1.106:80 www.1111.com123.com[[email protected] ~]# curl-x192.168.1.106:80 www.111.comAt this point, we can see no matter what website, now will be assigned to 123.com.We enter the URL, it will search all the configuration segments, if the configuration segment does not exist, then it will automatically jump to our virtual host. (The v
different versions of PHP at the same time, this article we will use the fastcgi mode loading, and the process of detailed records for your reference, in addition to the window above the configuration of the same many versions please refer to the previous published articles Apache Multi-Virtual host multi-version PHP (5.2+5.3+5.4) coexistence operation configura
Configuration Items
Vim nginx.conf
Add a row to read the default configuration file
For example, define a www_test_com.conf under vhost/as a new domain based www.test.com virtual host
Vim vhost/www_test_com.conf
The contents are as follows:
server{Listen 80;server_name www.test.com;CharSet Utf-8;Index index.php index.html index.htm;AutoIndex on;Location ~ \.php$ {root/var/site/www.test.com;Fastcgi_pass 12
http://php-accelerator.co.uk/can be downloaded and is a powerful opponent of Zend. is free of charge. I'm already using it. The effect is good.
Modify PHP.ini Plus:
Zend_extension =/usr/local/lib/php_accelerator_1.3.3r2.so
PHPA = On
Phpa.tweaks = On
Phpa.cache_dir =/tmp
Phpa.file_perms = 400
Phpa.cache_file_prune_period = 1h
Phpa.cache_file_ttl = 1d
Phpa.shm_size = 10
Phpa.shm_key = 0xc0deb00
Phpa.shm_perms = 666
Phpa.shm_user = Nobody
Phpa.shm_group
For the security configuration in Nginx/php-fpm/apache mod_php, refer to one of my previous articles:
"Correct setting Nginx/php-fpm/apache improve website security prevent being hanged Trojan"
http://zhangxugg-163-com.iteye.com/blog/1171572
First, basic knowledge preparation
Before any configuration starts, be sure to understand these concepts, and if the
Reprinted-four free foreign php host services. these hosts are not advertised and provide many advanced functions, such as FTP access and support for PHP and MySQL, self-defined domains and free sub-domain names. The most important thing is to support PHP, so we can use it as a blog
corresponds to/var/run/www.a.com-fcgi. pid and/tmp/www.a.com-fcgi. sock.
It is recommended that the site name be consistent with the user name and Script Name. If your website is www. B .com
Set useradd to web-b.com
Set the shell script to B .com. sh.
3. nginx sever preparation
[Root @ web49 nginx] # egrep-v '#. * | ^ $'/etc/nginx/host/webhost. conf
Server {
Listen 8888;
# Bind a domain name
Server_name
[TOC]Apache and PHP combined with Apache default virtual host 11.14 ~11.5 configuration Apcahe (httpd) Support Php1.apache (httpd) Master profile:/usr/local/apache2.4/conf/ httpd.conf, edit the file[[emailprotected] ~]# vim /usr/local/apache2.4/conf/httpd.conf2. Why modify the servername before modifying the configuration file[[emailprotected] ~]# /usr/local/apache2.4/bin/apachectl restartAH00558: httpd: Co
Rewritecond%{http_user_agent} WAP [OR]
#Nokia emulators (SDK)
Rewritecond%{http_user_agent} 7110
# Rewrite to where your wireless page is located
Rewriterule ^[\./] (. *) $/HOME/MYDIRECTORY/WIRELESS/HOME.WML [L]
Now you want to restart Apache server.
Generate your first wireless wml/php Web page
Ok, now that we have everything ready, let's set up the first page. In order to function properly, you need to send the correct header information.
# Send t
For Nginx, include the virtual host configuration in the master configuration nginx.conf:
Include sites-enabled/*.conf;
When creating a new virtual host, create a new file in the Sites-enables, such as:
Sites-enabled/a.com.conf
server {
Listen 80;
server_name www.a.com;
Location/{
Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $remote _addr;
Proxy_set_header
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.